package xuanke;

import java.util.Scanner;

public class Teachers {
    Scanner input = new Scanner(System.in);
    public int number;
    public String name;
    public Lessons[] lessons;

    public Teachers(int number, String name, String sex, Lessons[] lessons) {
        this.number = number;
        this.name = name;
        this.lessons = lessons;
    }

    public void OpenLessons(Teachers teacher, int n, Lessons curriculums1) {
        teacher.lessons[n] = curriculums1;
        System.out.println(teacher.name + "老师开设" + teacher.lessons[n].lessons + "课程成功");
    }
}
